//
//  UMVerifyHandler.h
//  umeng_vertify
//
//  Created by Yunxi on 2021/8/26.
//

#import <Foundation/Foundation.h>
#import <UMVerify/UMCommonHandler.h>

NS_ASSUME_NONNULL_BEGIN

static UMCustomModel *customodel;

@interface UMVerifyHandler : NSObject

//初始化友盟
- (void)initUMCommon;
//设置验证sdk密钥
- (void)setVerifySDKInfoWithSecret:(NSString *)secret complete:(void (^_Nullable)(NSDictionary * _Nonnull resultDic))complete;
///验证一键登录可用性
///type:
///     UMPNSAuthTypeVerifyToken = 1,  //本机号码校验
///     UMPNSAuthTypeLoginToken = 2    //一键登录

- (void)checkEnvAvailableWithType:(UMPNSAuthType)type complete:(void (^_Nullable)(NSDictionary * _Nonnull resultDic))complete;
///调起一键登录页面
/// timeOut : 超时时间
/// controller :
/// model : 自定义样式模型
- (void)getLoginTokenWithTimeoutWithTimeOut:(NSTimeInterval)timeOut complete:(void (^_Nullable)(NSDictionary * _Nonnull resultDic))complete;

//注销登录页面
+ (void)cancelLoginVC;

//设置页面model
+ (void)modelConfigWithModel:(UMCustomModel *)customModel;

+ (void)changeBtnShowWithHidden:(BOOL)hidden title:(NSString *)title;
@end

NS_ASSUME_NONNULL_END
